/**
 * 学习目标：React使用map实现列表渲染-数组渲染
 */
import React from 'react';
import ReactDOM from 'react-dom';

const songs = ['温柔', '倔强', '私奔到月球'];

const divNode = (
  <ul>
    {songs.map((item, index) => (
      <li key={index}>{item}</li>
    ))}
  </ul>
);

ReactDOM.render(divNode, document.getElementById('root'));
